<?php
namespace App\Web;
use \Workerman\Protocols\Http;
use App\JdService\jdPush;
/**
 * Created by PhpStorm.
 * User: laodage
 * Date: 19-1-14
 * Time: 下午3:17
 */

//use App\EbService\ebProcessPushData;
if (empty($_POST)){
    Http::header("HTTP/1.1 404 Not Found");
    echo '<html><head><title>404 File not found</title></head><body><center><h3>404 Not Found</h3></center></body></html>';
    throw new \Exception('jump_exit');
}else{
    //file_put_contents('/token.log',json_encode($_POST)."\n",FILE_APPEND);

    $class = new jdPush();
    $class->run($_POST);
}
